home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
051-075
/
scopedisk68
/
funckey
/
funckey.doc
< prev
next >
Wrap
Text File
|
1995-03-19
|
12KB
|
286 lines
/*****************************************\
*> <*
*> The FuncKey Function Key Editor <*
*> Version 1.01 <*
*> Copyright (c) 1987 by Anson Mah <*
*> <*
\*****************************************/
This document must accompany the program.
A completely distributable bundle is:
FuncKey
FuncKey.info
Fhandler
FuncKey.doc
------------
INTRODUCTION
------------
FuncKey* is a shareware program developed for the Amiga^. A fee of
$5 (five) is requested. Commented source, in addition to the executable, is
available for $10. The source code will be supplied on disk, and purchasers
of the source will be entitled to one free upgrade to both source and
executable when or if another version of FuncKey is written. When or if
will be determined by the level of response to Version 1.00 of FuncKey.
Please send payments and/or comments to the address below.
FuncKey is a tool that will put an end to the uselessness of the ten
function keys sitting atop the Amiga keyboard. This 'hotkey' utility allows
each function key to be programmed with up to five different keyboard
equivalent strings, each string able to hold up to 79 characters and may
contain control/escape sequences as well as left- and right-Amiga sequences.
The five possible strings are accessed by combinations of Shift, Alternate,
Left-/Right-Amiga, and the function keys.
Please note that FuncKey requires at least version 1.2 of AmigaDOS.
----------------
STARTING FuncKey
----------------
It is very important that the file called Fhandler be placed in either
the c: directory or the "current" directory. If used from CLI, "current"
refers to the directory that has been CD'ed to before executing FuncKey.
If used from Workbench, "current" refers to the directory in which the
FuncKey program lies.
FuncKey may be started from either the CLI (Command Line Interface) or
Workbench. From CLI, the syntax is
[run] FuncKey [filename]
That is, the program may be started by simply entering 'FuncKey' or started
as a background task by entering 'run FuncKey'. In these cases, the FuncKey
Control Panel will appear, allowing the function keys to be programmed. In
addition, the filename of a FuncKey data file may be entered on the command
line. This will initialize the function keys with pre-recorded data, and
the Control Panel will not be brought up. More on this particular topic
will be presented later.
From Workbench, FuncKey may be started by double-clicking on the
FuncKey icon (shaped like a function key) or a FuncKey data file icon. In
the first case, the Control Panel will appear, and in the second case, the
function keys will have been programmed, so the Control Panel is not needed.
-----------------------------
USING FuncKey - CONTROL PANEL
-----------------------------
The FuncKey Control Panel will appear only under the following three
conditions:
1> FuncKey is started in CLI with 'FuncKey', 'run FuncKey'
2> FuncKey is started with the the FuncKey icon in Workbench
3> RIGHT-Alt-HELP is depressed and the Control Panel is resident
An explanation of the Control Panel follow. It assumes the knowledge of the
terms 'gadget' and 'string gadget'.
String Gadgets F1 to F10:
The gadgets hold the definitions of the function keys. Each definition
may be up to 79 characters in length. Control and left-/right-Amiga
keys are specified by preceding the character desired with one of the
following three characters:
^ (caret) introduces a control character ( eg ^m is CTRL-m )
{ (left brace) introduces a left-Amiga sequence ( eg {m )
} (right brace) introduces a right-Amiga sequence ( eg }q )
The characters ^ { } can be generated in a definition simply by
entering two of them consecutively. For example {{ will result in a {.
Thus the sequences control-^, left-Amiga-{, and right-Amiga-} are not
possible. (Any actual control characters [represented by a small box
in the string gadget] will not be acknowledged.)
Key Qualifiers:
There are five gadgets labelled None, Shft, ALT, LAmi, RAmi. These are
used to select which particular set of the possible five are being
displayed and edited. For instance, to work with the definitions of
the ten ALT-<function key> combinations, choose ALT.
Filename String Gadget:
A file can be specified in which to store or from which to retrieve
FuncKey definitions. The name of the file is placed in this gadget.
The default filename is s:func.key.
Load & Save Gadgets:
These are used to load or save function key data from or to the file
specified in the filename string gadget.
I (Icon) Gadget:
This gadget is used in conjunction with the save feature. If it is
selected, an icon will be created for the data file. This icon, in the
Default Tool field, points to the FuncKey Control Panel program with
':FuncKey' as a default, which specfies the root directory of the disk
that the data file icon is on. This may be changed with the Workbench
function Info. (see the manual "Introduction to Amiga")
The gadget defaults to an on position if FuncKey is started from
Workbench and to an off position if started from CLI.
Resident YES & NO Gadgets:
The Control Panel may be kept active in memory and be available for
instant recall. To be sure that it is active, the YES gadget should be
chosen. To have it terminate (and thus free some memory when it is not
in use), select the NO gadget. The default is YES when the Control
Panel is executed with 'run FuncKey' and 'run FuncKey <filename>' from
CLI and when started with the selection of a data file icon from the
Workbench. To recall the Control Panel if it is off but resident, use
the key sequence Right-Alt-HELP.
FuncKey ON & OFF Gadgets:
These gadgets allow the setting of the state of the function key
handler process. If the handler is to be turned on, choose the ON
gadget, otherwise choose the OFF gadget. The default setting is ON.
Clear Gadget:
Selecting this will clear the Control Panel of all definitions.
Fetch Gadget:
This fetches the definitions currently contained in the handler
process. This is useful if a bad edit is performed, such as an
involuntary Clear of the Control Panel. Fetch will also return the
state of the handler, and will adjust the FuncKey ON/OFF gadgets
accordingly.
Cancel Gadget:
Selecting this will cancel any edits taken place in a function key
editing session. All changes made will not take place. Cancel will
close the Control Panel window and will remove it from memory if the
Resident NO gadget is selected.
<USE> Gadget:
When all edits are satisfactory, choosing this will send the data to
the handler process and exit the Control Panel. The Control Panel will
be removed from memory if the Resident NO gadget is selected.
<KILL> Gadget:
True to its name, the KILL function will terminate both the handler and
Control Panel processes, removing them from memory.
If any errors occur during any Control Panel functions, a message
describing the error will appear in the window title strip for approximately
one second.
------------------------------------
USING FuncKey - FUNCTION KEY HANDLER
------------------------------------
As stated earlier, the handler program Fhandler must be placed in
either the c: or current directory. Fhandler cannot be executed by itself
(a crash, aka a Guru Meditation, will result!).
The handler process stays resident in memory until it is KILLed by the
Control Panel. It may be toggled on and off by Right-Amiga-HELP. However,
if the Control Panel is resident also, the sequence will bring the Panel up
and toggling the state of the handler is performed on it instead.
FuncKey Version 1.01 will also pass through a key press to the Amiga
if a function key sequence has not been defined. For example, if the
handler is active, and F7 has not been defined with FuncKey, the F7 keypress
is passed to the Amiga input stream untouched. Thus with a program such as
Scribble~, which makes use of function keys, an undefined F7 will result in
Scribble toggling underline mode on and off. If F7 is instead defined,
turning the handler off is the only way to make use of Scribble's (or any
other program's) function keys.
-------------------------
RECOMMENDED CONFIGURATION
-------------------------
A recommended FuncKey environment is to have the Fhandler program in
the c: directory and a call to FuncKey in the startup-sequence. If a data
file is often used, the best way to invoke FuncKey is by issuing
FuncKey <filename>
from the startup-sequence. This will load up the handler, initialize it,
and remove the Control Panel, minimizing the use of memory.
--------------------------------------
POSSIBLE PROBLEMS & SOLUTIONS FOR THEM
--------------------------------------
Prob - Function keys are not responding!
Soln - The key may not be defined, so check the Control Panel.
- The handler may be in the off state, so press Right-Amiga-HELP to
toggle it.
Prob - Function key doesn't produce the right result!
Soln - The key may be defined with FuncKey and also used for another purpose
by another program. Either turn the handler off (with Right-Amiga-
HELP) or clear that key's definition from FuncKey, which will let the
Amiga see the key when the handler is active.
Prob - Selecting the data file icon doesn't seem to result in any actions!
Soln - If all is proper, the handler will have been loaded and initialized,
and trying out the function keys will show that.
- If a Workbench error occurs, it may be that the FuncKey Control Panel
program is in a location other than the root directory of the disk.
A change via the Workbench Info is in order.
Prob - (actually a bug) 24 bytes are lost every time the Control Panel and
the handler are terminated (KILLed).
Soln - Gotta find a fix for it!
-------------------
REFERENCE (CUT-OUT)
-------------------
-----8<-----cut here-----8<-----cut here-----8<-----cut here-----8<-----
-----------------------------
FuncKey Reference Information
-----------------------------
Usage: [run] FuncKey [filename]
Recalling Control Panel: Right-Alt-HELP
Toggle state of function key handler: Right-Alt-HELP
(used when the Control Panel is not active)
Examples of definitions:
dir^m --> results in 'dir' followed by a carriage return
^x --> results in CTRL-x (clears the CLI command line)
^c --> results in CTRL-c (defines a BREAK key)
list --> results in 'list'
{m --> results in Left-Amiga-m
}q --> results in Right-Amiga-q
REMINDER: Fhandler must be in either the c: or current directory.
-----8<-----cut here-----8<-----cut here-----8<-----cut here-----8<-----
--------------------
AUTHOR'S ADDRESS(ES)
--------------------
Post (zzzz): Anson Mah
2735 E. 2nd Ave.
Vancouver, B.C.
Canada V5M 1E2
Phone: (604) 254-6849
uucp: (before Sept '87) {anywhere}!ubc-vision!mdivax1!amah
OR \
mdisun11!amah
(after Sept '87) {anywhere}!ubc-vision!ubc-bdcvax!mah
Bitnet: USERAMAH@UBCMTSG
-----
NOTES
-------------------------------------------------------------------------
* FuncKey is Copyright (c) 1987 Anson Mah
~ Scribble! Copyright (c) 1986 Micro-Systems Software, Inc.
^ Amiga is a registered trademark of Commodore Business Machines, Ltd.
-------------------------------------------------------------------------